<?php if(!defined('HDPHP_PATH'))exit;C('SHOW_NOTICE',FALSE);?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
    <meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/>
    <title>类型管理</title>
    <link type="text/css" rel="stylesheet" href="http://localhost/program/Static/hdjs/hdui.css"/>
    <script type="text/javascript" src="http://localhost/program/Static/jquery/jquery-1.7.2.min.js"></script>
    <script type="text/javascript" src="http://localhost/program/Application/Admin/View/TypeAttr/js/js.js"></script>
    <link type="text/css" rel="stylesheet" href="http://localhost/program/Static/bootstrap/css/bootstrap.min.css"/>

</head>
<body>
<div class="wrap">
    <table class="table2">
        <thead>
        <tr class="tt">
            
                      
            <a href="<?php echo U('TypeAttr/add',array('type_id'=>$_GET['type_id']));?>" class="btn btn-info btn-xs"><span class="glyphicon glyphicon-plus-sign"></span>添加属性</a>         
            
        </tr>
        <tr>
            <td width="10"></td>
            <td width="100">属性id</td>           
            <td width="100">属性名称</td>
            <td width="100">属性类别</td>
            <td width="400">属性值</td>
            <td width="100">操作</td>
        </tr>

        </thead>
        <tbody>
            <?php foreach ($data as $k=>$v){?>
            <tr pid=<?php echo $v['pid'];?> cid=<?php echo $v['cid'];?>>
                    
                    <td width="30"></td>
                    <td><?php echo $v['id'];?></td> 
                    <td><?php echo $v['tattr_name'];?></td> 
                    <td><?php echo $v['tattr_type'];?></td> 
                    <td><?php echo $v['tattr_value'];?></td>                 
                    
                    <td width="200">
                       
                        <a href="<?php echo U('TypeAttr/edit',array('id'=>$v['id'],'type_id'=>$_GET['type_id']));?>" class="btn btn-info btn-xs">修改</a>
                        <a href="javascript:;"  onclick= "if(confirm('确认删除么？')) location.href='<?php echo U('TypeAttr/del',array('id'=>$v['id']));?>'" class="btn btn-danger btn-xs">删除</a>

                    </td>
                </tr>
            
            </tr>
            <?php }?>
        </tbody>
    </table>
    <div class="page_hdjob page_cms">
        <?php echo $page;?>
    </div>
</div>

</body>
</html>


